package com.home.common.handler.exception;

/**
 * Description: 基础异常处理返回
 * Created by 王大宸 on 2020-09-23 0:52
 * Created with IntelliJ IDEA.
 */
public class BizException extends Exception {

    private int status = 500500;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public BizException() {
    }

    public BizException(String message, int status) {
        super(message);
        this.status = status;
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    public BizException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
